<?php
# MantisBT - a php based bugtracking system
# Copyright (C) 2002 - 2013  MantisBT Team - mantisbt-dev@lists.sourceforge.net
# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.

auth_reauthenticate( );
access_ensure_global_level( config_get( 'manage_plugin_threshold' ) );

html_page_top( lang_get( 'plugin_format_title' ) );

print_manage_menu( );

?>

<br />
<form action="<?php echo plugin_page( 'templates/templates_update' )?>" method="post">
	<?php echo form_security_field( 'plugin_MRMailNotificationManager_templates_update' ) ?>
	<table align="center" style="width: 70%; border: solid 1px #000000;" cellspacing="1">

		<tr>
			<td class="form-title" colspan="2"><?php echo lang_get( 'plugin_MRMailNotificationManager_title' ) . ": " . lang_get( 'plugin_MRMailNotificationManager_page_templates' )?>
			</td>
		</tr>
		
		<div align="center"><p>
		<span class="bracket-link">[&nbsp;<a href="plugin.php?page=MRMailNotificationManager/notifications/notifications"><?php echo lang_get( 'plugin_MRMailNotificationManager_page_notifications' ) ?></a>&nbsp;]</span>
		<span class="bracket-link">[&nbsp;<a href="plugin.php?page=MRMailNotificationManager/email/email"><?php echo lang_get( 'plugin_MRMailNotificationManager_page_email' ) ?></a>&nbsp;]</span>
		<span class="bracket-link">[&nbsp;<?php echo lang_get( 'plugin_MRMailNotificationManager_page_templates' ) ?>&nbsp;]</span>
		</p></div>

		<tr <?php echo helper_alternate_class( )?>>
			<td class="category" width="40%"><?php echo lang_get( 'plugin_MRMailNotificationManager_template_email_label' )?>
			</td>
			<td class="left" width="50%"><?php echo lang_get( 'plugin_MRMailNotificationManager_template_email_description' )?>
			</td>
		</tr>

		<tr <?php echo helper_alternate_class( )?>>
			<td class="category" width="40%"><?php echo lang_get( 'plugin_MRMailNotificationManager_template_email_new_register' )?>
			</td>
			<td class="left" width="50%"><textarea name="mail_new_reg"
					cols="60" rows="15"><?php echo( plugin_config_get('mail_new_reg')) ?></textarea>
			</td>
		</tr>

		<tr <?php echo helper_alternate_class( )?>>
			<td class="category" width="40%"><?php echo lang_get( 'plugin_MRMailNotificationManager_template_email_update_register' )?>
			</td>
			<td class="left" width="50%"><textarea
					name="mail_update_reg" cols="60" rows="15"><?php echo( plugin_config_get('mail_update_reg')) ?></textarea>
			</td>
		</tr>

		<tr <?php echo helper_alternate_class( )?>>
			<td class="category" width="40%"><?php echo lang_get( 'plugin_MRMailNotificationManager_template_email_delete_register' )?>
			</td>
			<td class="left" width="50%"><textarea
					name="mail_delete_reg" cols="60" rows="15"><?php echo( plugin_config_get('mail_delete_reg')) ?></textarea>
			</td>
		</tr>


		<tr <?php echo helper_alternate_class( )?>>
			<td class="category" width="40%"></td>
		</tr>


		<tr <?php echo helper_alternate_class( )?>>
			<td class="category" width="40%"><?php echo lang_get( 'plugin_MRMailNotificationManager_template_email_addnote_register' )?>
			</td>
			<td class="left" width="50%"><textarea
					name="mail_addnote_reg" cols="60" rows="15"><?php echo( plugin_config_get('mail_addnote_reg')) ?></textarea>
			</td>
		</tr>

		<tr <?php echo helper_alternate_class( )?>>
			<td class="category" width="40%"><?php echo lang_get( 'plugin_MRMailNotificationManager_template_email_editnote_register' )?>
			</td>
			<td class="left" width="50%"><textarea
					name="mail_editnote_reg" cols="60" rows="15"><?php echo( plugin_config_get('mail_editnote_reg')) ?></textarea>
			</td>
		</tr>

		<tr <?php echo helper_alternate_class( )?>>
			<td class="category" width="40%"><?php echo lang_get( 'plugin_MRMailNotificationManager_template_email_deletenote_register' )?>
			</td>
			<td class="left" width="50%"><textarea
					name="mail_deletenote_reg" cols="60" rows="15"><?php echo( plugin_config_get('mail_deletenote_reg')) ?></textarea>
			</td>
		</tr>

		<tr>
			<td class="center" colspan="2"><input type="submit" class="button"
				value="<?php echo lang_get( 'plugin_MRMailNotificationManager_update_configurations' )?>" />
			</td>
		</tr>

	</table>
</form>

<?php
html_page_bottom();
